package com.java.day01;

/**
 * 实现 Runnable 接口
 * 重写run方法
 */
public class Thread01 implements Runnable  {
    public static void main(String[] args) {
        Thread thread = new Thread(new Thread01()) ;
        thread.start();
        System.out.println(thread.getName());
        System.out.println(Thread.currentThread().getName());
    }
    public void run() {
        System.out.println("runnable hello world");
    }
}
